import 'dart:io';

import 'package:flutter/material.dart';
import 'bottomLink.dart';
import 'logo.dart';
import 'form.dart';


class LoginPage extends StatefulWidget {
  @override
  _LoginPageState createState() => _LoginPageState();
}

class _LoginPageState extends State<LoginPage> {
  Widget _topForm() {
    return Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: <Widget>[
          LoginLogo(),
          LoginForm(),
        ]);
  }

  Widget _buildBody(context) {
    return Stack(children: <Widget>[
      new Align(alignment: FractionalOffset.bottomCenter, child: _topForm()),
      new Align(
          alignment: FractionalOffset.bottomCenter, child: LoginBottomLink())
    ]);
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      // appBar: AppBar(
      //   title: Text('doFlutter'),
      // ),
      body: _buildBody(context),
    );
  }
}
